
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

import 'LFormImageUpLogic.dart';

class LFormImageUpPage extends StatelessWidget {

  const LFormImageUpPage({super.key, required this.tag});
  final String tag;

  @override
  Widget build(BuildContext context) {

    return GetBuilder<LFormImageUpLogic>(
        // assignId:true,
        // autoRemove:true,
        tag: tag,
        builder: (logic){
          return Container(
              padding: const EdgeInsets.only(top: 10),
              constraints: const BoxConstraints(maxHeight: 180),
              child: SingleChildScrollView(
                child: Wrap(
                  spacing: 4,
                  runSpacing: 4,
                  alignment: WrapAlignment.start,
                  children: logic.createImagesList(context),
                ),
              )
          );
        }
    );
  }

}